<template>
  <div class="header">
    <x-header :left-options="{backText: ''}">{{text}}</x-header>
  </div>
</template>
<script>
  import Vue from "vue";
  import { XHeader } from 'vux'
  export default {
    props: ["text"],
    data: function () {
      return {

      }
    },
    mounted() {
    },
    methods: {

    },
    components: {
      XHeader,
    }
  }
</script>
<style lang="less">
  .header {
    width: 100%;
    height: 40px;
    position: fixed;
    top: 0px;
    z-index: 999;
  }

  .header .vux-header .vux-header-left .left-arrow:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    border-width: 1px 0 0 1px;
    -webkit-transform: rotate(315deg);
    transform: rotate(315deg);
    top: 8px;
    left: 7px;
  }

  .header .vux-header {
    position: relative;
    padding: 3px 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
  }

  .header .vux-header {
    position: relative;
    padding: 3px 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
  }

  .header .vux-header .vux-header-left .left-arrow:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #000;
    border-width: 1px 0 0 1px;
    -webkit-transform: rotate(315deg);
    transform: rotate(315deg);
    top: 8px;
    left: 7px;
  }

  .header .vux-header .vux-header-title {
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #000;
  }
</style>